<template>
  <!--明细页面弹出框-->
  <el-dialog
    title="实时客户支付协议管理查询352明细"
    center
    :visible.sync="open"
    width="1024px"
    :close-on-click-modal="true"
    @close="closeFn"
  >
    <el-form ref="detailsForm" :model="formData" disabled label-width="130px">
      <el-row>
        <el-col :span="12">
          <el-form-item label="交易流水号：" prop="id">
            <el-input v-model="formData.id" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="报文标识号：" prop="pkgId">
            <el-input v-model="formData.pkgId" />
          </el-form-item>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="12">
          <el-form-item label="工作日期：" prop="workdate">
            <el-date-picker
              v-model="formData.workdate"
              type="date"
              value-format="yyyyMMdd"
              placeholder=""
              style="width: 100%"
            ></el-date-picker>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="原报文标识号：" prop="oriPkgId">
            <el-input v-model="formData.oriPkgId" />
          </el-form-item>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="12">
          <el-form-item label="原发起参与机构：" prop="oriSender">
            <el-input v-model="formData.oriSender" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="原报文类型：" prop="oriMsgType">
            <el-input v-model="formData.oriMsgType" />
          </el-form-item>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="12">
          <el-form-item label="业务状态：" prop="bizStatus">
            <el-select style="width: 100%" v-model="formData.bizStatus" placeholder="">
              <el-option
                v-for="dict in dictMap.PROCESSSTATUS"
                :key="dict.value"
                :label="`${dict.value}-${dict.text}`"
                :value="dict.value"
              ></el-option>
            </el-select>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="业务拒绝处理码：" prop="bizRejectCode">
            <el-select style="width: 100%" v-model="formData.bizRejectCode" placeholder="">
              <el-option
                v-for="dict in dictMap.CIS_CODE"
                :key="dict.value"
                :label="`${dict.value}-${dict.text}`"
                :value="dict.value"
              ></el-option>
            </el-select>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="24">
          <el-form-item label="业务拒绝信息：" prop="bizRejectInfo">
            <el-input type="textarea" v-model="formData.bizRejectInfo" placeholder="" />
          </el-form-item>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="12">
          <el-form-item label="业务处理参与机构：" prop="bizProOrg">
            <el-input v-model="formData.bizProOrg" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="协议签约回执标志：" prop="contractRetnFlg">
            <el-select style="width: 100%" v-model="formData.contractRetnFlg" placeholder="">
              <el-option
                v-for="dict in dictMap.Con_RETN_FLG"
                :key="dict.value"
                :label="`${dict.value}-${dict.text}`"
                :value="dict.value"
              ></el-option>
            </el-select>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="24">
          <el-form-item label="合同（协议）号：" prop="protoId">
            <el-input v-model="formData.protoId" />
          </el-form-item>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="24">
          <el-form-item label="原申请号：" prop="orgReqIdenty">
            <el-input v-model="formData.orgReqIdenty" />
          </el-form-item>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="12">
          <el-form-item label="授权模式：" prop="authModel">
            <el-select style="width: 100%" v-model="formData.authModel" placeholder="">
              <el-option
                v-for="dict in dictMap.AuthModelCode"
                :key="dict.value"
                :label="`${dict.value}-${dict.text}`"
                :value="dict.value"
              ></el-option>
            </el-select>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="授权渠道：" prop="authChannel">
            <el-select style="width: 100%" v-model="formData.authChannel" placeholder="">
              <el-option
                v-for="dict in dictMap.AUTH_CHN_CODE"
                :key="dict.value"
                :label="`${dict.value}-${dict.text}`"
                :value="dict.value"
              ></el-option>
            </el-select>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="24">
          <el-form-item label="URL信息：" prop="authUrl">
            <el-input type="textarea" v-model="formData.authUrl" />
          </el-form-item>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="24">
          <el-form-item label="备注：" prop="addInfo">
            <el-input type="textarea" v-model="formData.addInfo" />
          </el-form-item>
        </el-col>
      </el-row>
    </el-form>
  </el-dialog>
</template>
<script>
export default {
  name: "ClientPayPactManageQuery352Details",
  components: {},
  props: {
    dictMap: {
      type: Object,
      default: () => {
        return {};
      },
    },
    formData: {
      type: Object,
      default: () => {
        return {};
      },
    },
  },
  data() {
    return {
      // 是否显示弹出层
      open: false,
      isLoading: false,
    };
  },
  mounted() {},

  methods: {
    // 表单重置
    reset() {
      this.resetForm("detailsForm");
    },
    closeFn() {
      this.open = false;
      this.reset();
    },
    show() {
      this.open = true;
    },
  },
};
</script>
<style>
.label-header-msg {
  font-weight: bold;
}

.form-card {
  margin-bottom: 10px;
}
</style>
